package ${properties.packageName}.${properties.moduleName}.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
<#list fields as field>
    <#if field.type.pkg!?length gt 0>
import ${field.type.pkg};
    </#if>
</#list>

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * ${properties.tableComment!}
 * </p>
 *
 * @author ${properties.author}
 * @since ${currentDate}
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("${properties.tableName}")
@ApiModel(value="${entity}对象", description="${properties.tableComment!}")
public class ${entity} implements Serializable {

    private static final long serialVersionUID = 1L;

<#list fields as field>
    <#if field.comment!?length gt 0>
    @ApiModelProperty(value = "${field.comment}")
    </#if>
    private ${field.type.code} ${field.propertyName};
</#list>
}
